﻿using PC.AzureMultiApp.WebRoleMultiApp.Controllers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting.Web;
using System.Web.Mvc;
using PC.AzureMultiApp.Storage.Moles;
using PC.AzureMultiApp.Core.Moles;
using PC.AzureMultiApp.Core.Models;
using PC.AzureMultiApp.Storage;
using System.Collections.Generic;
using PC.AzureMultiApp.Core.Applications.Moles;

namespace PC.AzureMultiApp.WebRoleMultiApp.Tests
{

    [TestClass()]
    public class DeleteControllerTest
    {

        [TestMethod]
        [HostType("Moles")]
        public void DeleteTest()
        {
            DeleteController controller = new DeleteController();

            bool called = false;
            MApplications.DeleteString = (string id)
            =>
            {
                called = true;
            };

            // Act
            controller.Delete("uniqueId");

            // Assert
            Assert.IsTrue(called);
        }

     

    }
}
